//
//  SMHFriendViewController.swift
//  SMHCommerce
//
//  Created by lvzhao on 2020/6/6.
//  Copyright © 2020 lvzhao. All rights reserved.
//

import UIKit

class SMHFriendViewController: LZBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.title = "我的好友"
        setupUI()
        // Do any additional setup after loading the view.
    }
    
    
    //MARK:setupUI
    func setupUI(){
        
        view.addSubview(self.friendView)
        self.friendView.snp.makeConstraints { (make) in
            make.edges.equalTo(0)
        }
    }
    
    
    lazy var viewModel : SMHFriendViewModel = {
       let viewModel = SMHFriendViewModel()
        return viewModel
    }()
    
    
    lazy var friendView : SMHFriendView = {
        let friendView = SMHFriendView.init(viewModel: self.viewModel)
        return friendView
    }()

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
